package com.xxx.service.impl;

import com.xxx.service.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String name, int timeToWait) {
        System.out.println("===============Remote ip: " + RpcContext.getContext().getAttachment("remote_ip") + " ====================");

        return "Hello i am provider B:" + name;
    }


}
